package com.dartsstats;

public class Team {

	private String name;
	private boolean isManaged;
	private long id;
	
	public Team(String name, boolean isManaged, int id){
		this.setName(name);
		this.setManaged(isManaged);
		this.setId(id);
	}

	public Team() {
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public boolean isManaged() {
		return isManaged;
	}

	public void setManaged(String isManaged) {
		if(isManaged == null || isManaged.equalsIgnoreCase("false")){
			this.isManaged = false;
		} else {
			this.isManaged = true;
		}
	}
	
	public void setManaged(boolean isManaged){
		this.isManaged = isManaged;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String toString(){
		return name;
	}
	
	
	
}
